package com.example.springboot_07_filter;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

/**
 * Filter的使用：
 * 1.自定义myFilter，实现implements Filter接口
 * 2.在重写的方法中写入自定义逻辑
 * 3.在主启动类上添加ServletComponentScan注解
 */
@ServletComponentScan //用于扫描指定包及其子包下的所有Servlet组件
@SpringBootApplication
public class SpringBoot07FilterApplication {

	public static void main(String[] args) {
		SpringApplication.run(SpringBoot07FilterApplication.class, args);
	}

}
